//
//  PageView.h
//  悦读
//
//  Created by dllo on 15/5/25.
//  Copyright (c) 2015年 贾建兴. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol PageViewDelegate <NSObject>

- (void)menuButtonClicked:(int)index;

@end

@interface PageView : UIView

@property (nonatomic, retain)   UIView  *backgroundMenuView;
@property (nonatomic, retain)  UIButton  *menuButton;
@property (nonatomic, retain)  NSMutableArray *buttonList;
@property (nonatomic, retain) UIColor *menuColor;
@property (nonatomic) BOOL isOpen;

@property (nonatomic, retain) id<PageViewDelegate> delegate;
- (void)showMenu;
- (void)addImages:(NSArray*)images;
- (void)insertMenuOnView:(UIView*)view atRect:(CGRect )rect;
@end
